package com.sky.client;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.result.Result;
import com.sky.vo.EmployeeLoginVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "sky-service-employee")
public interface EmployeeClient {
    
    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    @PostMapping("/admin/employee/login")
    Result<EmployeeLoginVO> login(@RequestBody EmployeeLoginDTO employeeLoginDTO);
    
    /**
     * 注册员工
     * @param employeeDTO
     * @return
     */
    @PostMapping("/admin/employee/register")
    Result register(@RequestBody EmployeeDTO employeeDTO);
}